<topic>
	<head>
		<title>MAX</title>
		<keywords>
			<keyword term="functions, MAX" />
			<keyword term="aggregates, MAX" />
			<keyword term="aggregate functions, MAX" />
			<keyword term="MAX aggregate" />
		</keywords>
		<links>
			<link href="Functions.html">Functions</link>
			<link href="Aggregate Functions.html">Aggregate Functions</link>
		</links>
	</head>
	<body>
		<summary>
			<p>
				Returns the maximum value of the expression in a group. <c>NULL</c> values are ignored.
			</p>
		</summary>

		<syntax>
			<code xml:space="preserve">MAX ( expression )</code>
		</syntax>

		<parameters>
			<params>
				<param name="value">
					<p>
						An expression to determine the maximum for.
					</p>
				</param>
			</params>
		</parameters>

		<returns>
			<p>
				The maximum of all evaluated values of <c>expression</c> in a group. <c>NULL</c> values are ignored.
			</p>
		</returns>

		<remarks>
			<p>
				The <c>MAX</c> aggregate function is not limited to certain data types. However, the data type <c>T</c> must be
				comparable, i.e. implement the .NET interface <c>System.IComparable</c>.
			</p>
		</remarks>
	</body>
</topic>
